#include "CgiWrapper.h"

int main()
{
    try
    {
	CGIWrapper cgi;
	cgi.HTMLHeader();
	cgi.BeginHtml();
	cgi.BeginHead("Login system");
	cgi.EndHead();
	cgi.BeginBody();

	cgi.H1("Login Page");
	cgi.BeginForm("/cgi-bin/verify", "post");

	cgi.BeginP();
	cgi.HtmlText("Username");
	cgi.Input("text","usr");
	cgi.EndP();

	cgi.BeginP();
	cgi.HtmlText("Password");
	cgi.Input("password","pwd");
	cgi.EndP();

	cgi.BeginP();
	cgi.Input("submit", "submitType", "register");
	cgi.Input("submit", "submitType", "login");
	cgi.EndP();

	cgi.EndForm();

	cgi.EndBody();
	cgi.EndHtml();
    }
    catch(...)
    {
	
    }
    return 0; 
}
 
